package com.xjust.controller.physician;

import com.xjust.pojo.Result;
import com.xjust.service.MedicalRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;


@RestController
@RequestMapping("/medicalrecords")
public class MedicalRecordController {
    @Autowired
    MedicalRecordService medicalRecordService;
    //保存病历
    @PostMapping("/saveMedicalRecord")
    public Result saveMedicalRecord(@RequestBody Map<String,Object> medicalRecord){
        medicalRecordService.saveMedicalRecord(medicalRecord);
        return Result.success();
    }
    //提交看诊结果
    @PostMapping("/submitDiagnosticOpinion")
    public Result submitDiagnosticOpinion(@RequestBody Map<String,Object> medicalRecord){
        medicalRecordService.submitDiagnosticOpinion(medicalRecord);
        return Result.success();
    }
}
